package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2017/6/5 0005.
 */

public class Popup implements Parcelable {

    /**
     * 公告弹窗内容
     */
    @SerializedName("content")
    private String content;

    /**
     * 公告弹窗标题
     */
    @SerializedName("title")
    private String title;

    private String image;
    private int jump_type;
    private String jump_value;

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getJump_type() {
        return jump_type;
    }

    public void setJump_type(int jump_type) {
        this.jump_type = jump_type;
    }

    public String getJump_value() {
        return jump_value;
    }

    public void setJump_value(String jump_value) {
        this.jump_value = jump_value;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.content);
        dest.writeString(this.title);
        dest.writeString(this.image);
        dest.writeString(this.jump_value);
        dest.writeInt(this.jump_type);
    }

    public Popup() {
    }

    protected Popup(Parcel in) {
        this.content = in.readString();
        this.title = in.readString();
        this.image= in.readString();
        this.jump_value =in.readString();
        this.jump_type = in.readInt();
    }

    public static final Creator<Popup> CREATOR = new Creator<Popup>() {
        @Override
        public Popup createFromParcel(Parcel source) {
            return new Popup(source);
        }

        @Override
        public Popup[] newArray(int size) {
            return new Popup[size];
        }
    };
}
